#include"stdio.h"
int main()
{
int m = 1189;
int n = 841;
int a,b;
char c;
int x;
scanf ("%c%d",&c,&x);
switch(x)
    {

       case 0:
              a = m;
              b = n;
               break;
       case 1:
              a = n;
              b = m / 2;
            break;   
        case 2:
              a = m / 2;
              b = n / 2;
            break;   
        case 3:
              a = n / 2;
              b = m / 4;
            break;   
        case 4:
              a = m / 4;
              b = n / 4;
            break;   
        case 5:
              a = n / 4;
              b = m / 8;
            break;   
        case 6:
              a = m / 8;
              b = n / 8;
            break;   
        case 7:
              a = n / 8;
              b = m / 16;
            break;   
        case 8:
              a = m / 16;
              b = n / 16;
            break;   
        default :
        printf ("输入错误请重新输入");
    }     
     printf ("尺寸为：%d*%d",a,b);
    return 0;
}